import instance from "@/utils/http"

export const createOrderData = (data) => {
    return instance.post('order/order/createOrder',data)
}

export const getOrderData = (id) => {
    return instance.get('order/order/getOrder',{
        params:{
            id
        }
    })
}

export const getOrderPage = (params) => {
    return instance.get('order/order/getOrderList',{
        params:{
            orderState: params.orderState,
            pageSize: params.pageSize,
            pageNum: params.pageNum
        }
    })
}